home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / word_prc / njs30exe.zip / NJCONFIG.KEY < prev    next >
Text File  |  1994-11-20  |  9KB  |  274 lines

  1. * this is a comment line
  2. *--------------------------------------------------------------
  3. * Key config file for NJSTAR ver 3.0
  4. *
  5. * ^ = CTRL    @ = ALT    # = SHIFT
  6. *--------------------------------------------------------------
  7. * MetaKey - two key commands
  8. * Meta + ^A -> ^Z   A -> Z   0 -> 9
  9. *        ESC; ^BACKSLASH; ^RBRACE; ^6; ^- (MINUS)
  10. *        ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _
  11. *--------------------------------------------------------------
  12. * ctrl-x is used for meta key,  but can be defined to other key
  13.  
  14. ^X        MetaKey
  15.  
  16. Meta+^S   SaveFile
  17. Meta+^W   SaveAs
  18. Meta+^Z   QuitFile
  19. Meta+^V   EditFile
  20. Meta+N    FileName
  21. *-----------------------------------------------------------------------------
  22. * Macro commands - Execute more than one command with one key stroke, plus more
  23. *-----------------------------------------------------------------------------
  24. * NOTE:
  25. *       1. macro command start with 'Macro'
  26. *       2. '&' at and means continue at next line
  27. *       3. '#' followed by number n == Insert Ascii n into Macro key.
  28. *           Max n is 160, n can be specified as: DEC #150; OCT #083; HEX #0xA0.
  29. *       4. '$' followed by number n == Sleep n ticks before exec. next command.
  30. *       5. Lables are a name+':'; eg. BEG: END:, Max number of Lables is 64.
  31. *       6. Jump   Beg: == Jump to Label Beg: unconditionally
  32. *       7. JTrue  Beg: == Jump to Beg: if previous command is executed Ok
  33. *       8. JFalse Beg: == Jump to Beg: if previous command is executed NOT Ok
  34. *       9. Pause == Stop Macro Execution till Enter/ESC is Pressed
  35. *      10. <ScreenOff> turn off screen display when in macro
  36. *      11. <ScreenOn>  turn on  screen display when in macro
  37. *      12. "XXXX"  == insert XXXX into Only File or Search string. eg "NJSTAR"
  38. *      13. 'XXXX'  == insert XXXX into Pinyin Line or file. eg 'zhongguo '
  39. *          'xxx' and "xxx" are different only when NJSTAR not in ASCII mode
  40. *
  41. *NOTE:     Press Ctrl+C/Break to stop Macro execution. specially dead loop.
  42. *------------------------------------------------------------------------------
  43. *Examples:
  44.  
  45. *(1) Mark a sentence with Chinese character only.
  46. Meta+1 Macro ScreenOff UnMarkBlock IsChinese JFalse END:           &
  47.        LEFT: IsChinese JFalse BEG: CursorLeft Jump LEFT:           &
  48.        BEG: CursorRight MarkBlock RIGHT: IsChinese JFalse MARKEND: &
  49.        CursorRight Jump RIGHT: MARKEND: MarkBlock END:
  50.  
  51. *(2) Call WordPefect 5.1 to Check the spelling of current File ,
  52. *    WARNING: WP51 must be on path
  53. Meta+s Macro screenoff SaveFile DOS 'WP51 ' FileName enter   &
  54.        EditFile FileName enter
  55.  
  56. *(3) Replace the current English/Chinese by user entered new character
  57. Meta+F  Macro UnMarkBlock IsChinese JFalse MW: MarkBlock Jump OK: &
  58.         MW: MarkWord OK: copy SearchReplace paste pause pause
  59.  
  60. *(4) Search the current English or Chinese word until end of the file
  61. Meta+^F  Macro screenoff unmarkblock IsChinese JFalse MW: MarkBlock Jump OK: &
  62.          MW: MarkWord OK: copy search paste screenon enter
  63.  
  64. *(5) Insert a file into current file
  65. ^I  macro savefile openfile JFalse END: screenoff BegFile markline endfile &
  66.     markline copy QuitFile PrevFile paste gotoblock END:
  67.  
  68. *(6) Display the time and date for 5 second than delete it
  69. meta+T macro enter enter enter enter cursorup cursorup tabright &
  70.        TimeDate $100 delline backspace backspace delchar
  71.  
  72. *(7) Read a file *.GB uuencoded in file *.UUE (UUDECODE.COM is needed)
  73. *    NOTE: Enter the file name with '.' but without extension (eg. CM9311A.)
  74. Meta+^U   Macro savefile editfile pause screenoff &
  75.           DOS "UUDECODE " Filename "UUE" Enter    &
  76.           EditFile FileName "GB" Enter PrevFile QuitFile
  77.  
  78. *(8) Convert a file with every line hard returned into soft return
  79. *    NOTE: should have a blank line between paragraph, Mark a Block
  80. Meta+\    macro screenoff GotoBlock IsCursorInBlock Jfalse END:  &
  81.           Replace #10 #10 enter "##"    Enter  &
  82.           Replace #10     enter DelLine Enter  &
  83.           Replace "##"    enter #10 #10 Enter  UnMarkBlock END:
  84.  
  85. *(9) Open a file with file name at cursor
  86. Meta+^O   Macro altwordset markword editfile paste enter defwordset
  87.  
  88. *(10) Use Shift + Arrow key to mark block interactively
  89. #up       Macro Screenoff MarkBlock CursorUp    MarkBlock
  90. #Down     Macro Screenoff MarkBlock CursorDown  MarkBlock
  91. #Left     Macro Screenoff MarkBlock CursorLeft  MarkBlock
  92. #Right    Macro Screenoff MarkBlock CursorRight Markblock
  93.  
  94. ***************** More macro Commands *******************
  95.  
  96. * Insert strings into file
  97. Meta+^N   Macro "Njstar" 'nihongbo '  #156 "39" #155 '00'
  98. ^N        Macro ScreenOff "í╛─╧╝½╨╟í┐"
  99.  
  100. * Use this macro only to recover a corrupted Chinese string
  101. Meta+^-   Macro #172
  102.  
  103. * Automatically display the file Page by page or Line by line
  104. *  NOTE: Both macros are dead loop, press CTRL+BREAK to stop
  105. Meta+^P   Macro Start: BegFile beg: $12 PageDown JFalse Start: Jump beg:
  106. Meta+^L   Macro beg: Scrolldown Jfalse end: JUMP beg: &
  107.                 end: BegFile $180 Jump beg:
  108.  
  109. * Search a user entered word then mark it
  110. Meta+^M   Macro search Pause markword
  111.  
  112. * Read Chinese characters in marked block, Mark block before using this macro
  113. meta+P    macro gotoblock Beg: IsChinese JFalse RT: HanziInfo $5 " " &
  114.                 RT: CursorRight IsCursorInBlock JTrue Beg: 
  115.  
  116. * Macro implements 'Delete to End of File'
  117. Meta+E   Macro UnMarkBlock MarkBlock EndFile MarkBlock DelBlock
  118.  
  119. * Macro implements 'Delete to End of Screen'
  120. Meta+Q   Macro UnMarkBlock MarkBlock EndScreen EndLine MarkBlock DelBlock
  121. Meta+W   Macro ScreenOff UnMarkBlock MarkBlock EndScreen EndLine &
  122.                          MarkBlock DelBlock
  123.  
  124. *Call an external program 'GREP' to check the spelling of Current English word
  125. meta+^X  Macro MarkWord GotoBlock IsCursorInBlock Jfalse END: &
  126.          Copy DOS  'grep "^' Paste '" C:\dict.usa' Enter Pause END:
  127.  
  128.  
  129. *-----------------------------------------------------------------------------
  130. * Mouse buttons
  131. *-----------------------------------------------------------------------------
  132. M_LR      UnMarkBlock
  133. M_LEFT    Nothing
  134. M_RIGHT   MarkBlock
  135. M_LL      HanziInfo
  136. M_RR      MarkLine
  137. M_MID     MarkLine
  138. M_MM      QuickHelp 
  139.  
  140. *--------------------------------------------
  141. * one key commands
  142. *--------------------------------------------
  143. ^6        Symbols
  144. ^A        ScrollUp
  145. ^B        SearchBackward
  146. ^C        NJCONFIG
  147. ^D        Dos
  148. ^E        DelToEndLine
  149. ^F        SearchForward
  150. ^G        Glossary
  151. ^J        DelToBegLine
  152. ^K        DelToEndLine
  153. ^L        DupLine
  154. ^M        EnglishMenu
  155. ^O        OpenFile
  156. ^P        Print
  157. ^S        Shell
  158. ^T        TimeDate
  159. ^W        Copy
  160. ^Y        DelLine
  161. ^Z        ScrollDown
  162.  
  163. @A        AltWordSet
  164. @B        MarkBlock
  165. @D        DelBlock
  166. @C        CopyBlock
  167. @E        EDicLookup
  168. @G        GotoBlock
  169. @L        MarkLine
  170. @M        MoveBlock
  171. @Q        DefWordSet
  172. @S        SaveBlock
  173. @U        UnMarkBlock
  174. @W        MarkWord
  175. @X        LianXiang
  176. @Y        UnDelBlock
  177. @Z        HanziInfo
  178.  
  179. F1        QuickHelp
  180. F2        SaveFile
  181. F3        QuitFile
  182. F4        File
  183. F5        Search
  184. F6        SearchReplace
  185. F7        RenameFile
  186. F8        EditFile
  187. F9        UnDelLine
  188. F10       NextFile
  189. F11       MacroRec
  190. F12       MacroExec
  191.  
  192. ^F1       FileStatus
  193. ^F2       Options
  194. ^F3       QuitAll
  195. ^F4       SaveAll
  196. ^F5       WordCount
  197. ^F6       GotoLine
  198. ^F7       SaveAs
  199. ^F8       AddLX
  200. ^F9       ToggleEOL
  201. ^F10      SwitchCCLIB
  202. ^F11      RepeatCmd
  203. ^F12      OutCode
  204.  
  205. @F1       PY2Hanzi
  206. @F2       EXinput
  207. @F3       OnlinePY
  208. @F4       GBinput
  209. @F5       PYinput
  210. @F6       ASCinput
  211. @F7       ZYinput
  212. @F8       DelLX
  213. @F9       PureChinese
  214. @F10      PrevFile
  215. @F11      SaveMacro
  216. @F12      ReadMacro
  217.  
  218. #F1       Radicals
  219. #F2       HzSaveFile
  220. #F3       HzDecode
  221. #F4       HzEditFile
  222. #F5       PcxSaveFile
  223. #F6       ZwSaveFile
  224. #F7       ZwDecode
  225. #F8       BacktoPinyin
  226. #F9       ListDir
  227. #F10      FileList
  228. #F11      Macro UnMarkBlock AddPinYin
  229. #F12      Macro UnMarkBlock DelPinYin
  230.  
  231. Meta+B    ReadBig5
  232. Meta+^B   SaveBig5
  233. Meta+M    MacroRec
  234. Meta+E    MacroExec
  235. Meta+w    SaveMacro
  236. Meta+R    ReadMacro
  237. Meta+^R   RepeatCmd
  238.  
  239. HOME      BegLine
  240. UP        CursorUp
  241. PGUP      PageUp
  242. LEFT      CursorLeft
  243. RIGHT     CursorRight
  244. END       EndLine
  245. DOWN      CursorDown
  246. PGDN      PageDown
  247. DEL       DelChar
  248. INS       BackToPinyin
  249. ^DEL      DelBlock
  250. ^INS      UnDelBlock
  251. ^BS       DelLine
  252. GREY+     Copy
  253. GREY-     DelBlock
  254. GREY*     Paste
  255. BS        BackSpace
  256. TAB       TabRight
  257. ENTER     Enter
  258. GREYENTER HardReturn
  259. #ENTER    HardReturn
  260. ^LEFT     WordLeft
  261. ^RIGHT    WordRight
  262. ^END      EndFile
  263. ^HOME     BegFile
  264. ^PGUP     BegFile
  265. ^PGDN     EndFile
  266.  
  267. ^UP       BegScreen
  268. ^DOWN     EndScreen
  269. @UP       ScrollUp
  270. @DOWN     ScrollDown
  271. *---------------------------
  272. * end of njconfig.key
  273. *---------------------------
  274.